from django.urls import path
from users.views import *

urlpatterns = [
    # 校验用户名
    path("check/username/<str:username>/", CheckUsername.as_view()),
    # 校验手机号
    path("check/mobile/<str:mobile>/", CheckMobile.as_view()),
    # 注册
    path("register/", UserRegister.as_view()),
    # 登录
    path("login/", UserLogin.as_view()),
    # 生成图片验证码
    path("image_code/<str:imageCodeID>/", ImageCode.as_view()),
    # 校验团片验证码
    path("check_image_code/", CheckImageCode.as_view()),
    # 退出登录
    path("logout/", Logout.as_view()),
    # 获取用户信息
    path("user/getUserInfo/", GetUserInfo.as_view()),
    # 添加收货地址
    path("user/addAddr/", AddAddressView.as_view()),
    # 修改个人信息
    path("user/updateUserInfo/", UpdateUserInfo.as_view()),
    # 修改密码
    path("user/updatePassword/", UpdatePwdView.as_view()),
    # 删除收货地址
    path("user/deleteAddr/", DelAddressInfo.as_view()),

]
